<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>编辑专项基金</title>
		<script charset="utf-8" src="editor/kindeditor.js"></script>
		<script>
	KE.show( {
		id : 'article_content',
		resizeMode : 1,
		items : ['justifyleft', 'justifycenter', 'justifyright','justifyfull', 
					'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 
					'subscript','superscript', '|', 'selectall', '-','title', 'fontname', 'fontsize', '|', 
					'textcolor', 'bgcolor', 'bold','italic', 'underline', 'strikethrough', 'removeformat', '|', 
					'image','advtable', 'hr', 'emoticons', 'link', 'unlink' ]
	});
	KE.show( {
		id : 'title',
		resizeMode : 1,
		items : [ 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold',
				'italic', 'underline', 'removeformat' ]
	});
</script>
	</head>
	<body>
		<div class="div_title">
			<s:if test="article.type==1">
				编辑工作动态/新闻
			</s:if>
			<s:elseif test="article.type==2">
				编辑通知公告
			</s:elseif>
			<s:elseif test="article.type==3">
				编辑赤子情怀
			</s:elseif>
			<s:elseif test="article.type==4">
				编辑历年年鉴
			</s:elseif>
			<s:elseif test="article.type==5">
				编辑基金会简介
			</s:elseif>
			<s:elseif test="article.type==6">
				编辑组织机构
			</s:elseif>
			<s:elseif test="article.type==7">
				编辑基金会章程
			</s:elseif>
			<s:elseif test="article.type==8">
				编辑管理办法
			</s:elseif>
			<s:elseif test="article.type==9">
				编辑联系方式
			</s:elseif>
			<s:elseif test="article.type==10">
				编辑捐赠途径
			</s:elseif>
			<s:elseif test="article.type==11">
				编辑捐赠流程
			</s:elseif>
			<s:elseif test="article.type==12">
				编辑鸣谢办法
			</s:elseif>
			<s:elseif test="article.type==13">
				编辑免税文件
			</s:elseif>
			<s:elseif test="article.type==14">
				编辑下载文件
			</s:elseif>
			<s:elseif test="article.type==15">
				编辑基金使用记录
			</s:elseif>
		</div>
		<div class="div_article">
			<s:form action="manage/editArticle.action" method="POST"
				theme="simple" enctype="multipart/form-data">
				<input type="hidden" name="type" value="${article.type}" />
				<input type="hidden" name="part" value="${part}" />
				<input type="hidden" name="article.type" value="${article.type}" />
				<input type="hidden" name="article.id" value="${article.id}" />
				<s:if test="article.imagePath!=null">
					<input type="hidden" name="article.imagePath"
						value=${article.imagePath } />
				</s:if>
				<s:if test="article.filePath!=null">
					<input type="hidden" name="article.filePath"
						value=${article.filePath } />
				</s:if>
				<table>
					<tbody>
						<tr>
							<td class="td_key">
								标题：
							</td>
							<td>
								<s:textarea id="title" name="article.title" cols="70" rows="5"></s:textarea>
							</td>
						</tr>
						<tr>
							<td class="td_key">
								图片：
							</td>
							<td>
								<s:if test="article.imagePath!=null">
									<a href="upload/image/${article.imagePath}" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'"></a>
								</s:if>
								<s:file name="articleImage" cssClass="input_long"></s:file>
							</td>
						</tr>
						<tr>
							<td class="td_key">
								附件：
							</td>
							<td>
								<s:if test="article.filePath!=null">
									<a href="manage/downloadArticleEnclosure.action?uuid=${article.uuid}" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'"></a>
								</s:if>
								<s:file name="articleFile" value="articleFile"
									cssClass="input_long"></s:file>
							</td>
						</tr>
						<tr>
							<td class="td_key">
								内容：
							</td>
							<td>
								<s:textarea id="article_content" name="article.content"
									cols="70" rows="30"></s:textarea>
							</td>
						</tr>
						<tr>
							<td>
							</td>
							<td>
								<s:submit></s:submit>
							</td>
						</tr>
					</tbody>
				</table>
			</s:form>
		</div>
	</body>
</html>